from tortoise import fields, models

class ParameterCategory(models.Model):
    category_id = fields.IntField(pk=True)
    category_name = fields.CharField(max_length=100)
    unit = fields.CharField(max_length=50, description="类别单位")

    class Meta:
        table = "parameter_category"

    def __str__(self):
        return self.category_name